import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { MySeriveProvider } from '../../../providers/my-serive/my-serive';

/**
 * Generated class for the DetailsPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-details',
  templateUrl: 'details.html'
})
export class DetailsPage {
  allEval;
  constructor(
    public navCtrl: NavController,
    public navParams: NavParams,
    public mySerive: MySeriveProvider
  ) {}

  ionViewDidLoad() {
  }

  ionViewWillEnter(){
    this.mySerive.getAllend().subscribe(data => {
      this.allEval = data['data'];
      // console.log(this.allEval);
      
    });
  }

  openSmitem(evaluatingcode) {
    this.navCtrl.push('MemberPage', {evaluatingcode: evaluatingcode});
  }
}
